import axios from './http'
// import qs from 'qs'
import base from './base'

const accredit = {
  accreditLogin (params) {
    return axios.get(`${base.pro}/api/wechat/authorize.html`, {
      redirect_url: params
    }).then((res) => {
      res = res.data
      window.location.href = res.data.authorize_url
    })
  }
}

export default accredit
